// 编码地址：src/locales/zh-CN/menu.ts

import { MenuDataItem } from "@ant-design/pro-layout";
import ARCV_CONFIG from './router/arcv';
import archives from './router/archives';
import INVOICE_CONFIG from './router/invoice';

export const routes: MenuDataItem[] = [
  {
    path: `/mof/*`,
    microApp: "arcvMof",
    layout: false,
    microAppProps:{
      // autoSetLoading: true,
      base: '/arcv/mof'
    }
  },
  {
    path: `/bso/*`,
    microApp: "arcvBso",
    layout: false,
    microAppProps:{
      // autoSetLoading: true,
      base: '/arcv/bso'
    }
  },
  {
    path: "/",
    component: "../layouts/BasicLayout.tsx",
    layout: false,
    routes: [
      ...ARCV_CONFIG,
      ...archives,
      ...INVOICE_CONFIG,
      {
        path: '/archives/generalDetail',
        component: './invoice/generalDetail'
      },
    ],
  },
];
